const { find } = require('../models/answer')

const answer = async (req, res, next) => {
    res.set('content-type', 'application/json; charset=utf-8')

    const username = req.params.username

    const ret = await find(username)

    res.render('succ', {
        data: JSON.stringify({
            ret
        })
    })
}

module.exports = {
    answer
}